package me.zhengjie.minbearwcs.dao.outbound.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.outbound.inf.OutboundStockUpRecordHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.outbound.OutboundStockUpRecordHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.outbound.history.OutboundStockUpRecordHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class OutboundStockUpRecordHistoryDaoImpl implements OutboundStockUpRecordHistoryDao {

    private final OutboundStockUpRecordHistoryMapper mapper;

    @Override
    public boolean insert(OutboundStockUpRecordHistory outboundStockUpRecordHistory) {
        return mapper.insert(outboundStockUpRecordHistory) == 1;
    }
}
